.class Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;
.super Landroid/widget/BaseAdapter;
.source "MoreGamesActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/flyfish/moregames/MoreGamesActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyAdapter"
.end annotation


# instance fields
.field mapList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/flyfish/moregames/MoreGamesActivity;


# direct methods
.method public constructor <init>(Lcom/flyfish/moregames/MoreGamesActivity;Ljava/util/ArrayList;)V
    .locals 0
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 91
    .local p2, mapList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iput-object p1, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    .line 90
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 92
    iput-object p2, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->mapList:Ljava/util/ArrayList;

    .line 93
    return-void
.end method

.method private getView(Landroid/graphics/Bitmap;Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;
    .locals 12
    .parameter "bitmap"
    .parameter "nameStr"
    .parameter "infoStr"

    .prologue
    const/16 v11, 0x48

    const/4 v10, 0x1

    const/4 v9, -0x2

    .line 119
    new-instance v0, Landroid/widget/ImageView;

    iget-object v8, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v0, v8}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 120
    .local v0, icon:Landroid/widget/ImageView;
    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 121
    new-instance v4, Landroid/widget/TextView;

    iget-object v8, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v4, v8}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 122
    .local v4, name:Landroid/widget/TextView;
    const/high16 v8, 0x41a0

    invoke-virtual {v4, v10, v8}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 123
    sget-object v8, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    .line 124
    invoke-virtual {v4, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 125
    new-instance v1, Landroid/widget/TextView;

    iget-object v8, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v1, v8}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 126
    .local v1, info:Landroid/widget/TextView;
    const/high16 v8, 0x4180

    invoke-virtual {v1, v10, v8}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 127
    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 129
    new-instance v2, Landroid/widget/LinearLayout;

    iget-object v8, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v2, v8}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 130
    .local v2, ll:Landroid/widget/LinearLayout;
    const/4 v8, 0x0

    invoke-virtual {v2, v8}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 131
    const/16 v8, 0x10

    invoke-virtual {v2, v8}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 133
    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v5, v9, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 134
    .local v5, params2:Landroid/widget/LinearLayout$LayoutParams;
    const/16 v8, 0xf

    iput v8, v5, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 135
    new-instance v3, Landroid/widget/LinearLayout;

    iget-object v8, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v3, v8}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 136
    .local v3, lls:Landroid/widget/LinearLayout;
    invoke-virtual {v3, v10}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 137
    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 138
    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v6, v11, v11}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 139
    .local v6, params3:Landroid/widget/LinearLayout$LayoutParams;
    const/4 v8, 0x5

    iput v8, v6, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 140
    new-instance v7, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v7, v9, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 141
    .local v7, params4:Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v2, v0, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 142
    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 143
    invoke-virtual {v3, v4, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 144
    invoke-virtual {v3, v1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 147
    return-object v2
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->mapList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 101
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 106
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 111
    iget-object v3, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->this$0:Lcom/flyfish/moregames/MoreGamesActivity;

    #getter for: Lcom/flyfish/moregames/MoreGamesActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/flyfish/moregames/MoreGamesActivity;->access$0(Lcom/flyfish/moregames/MoreGamesActivity;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    .line 112
    .local v2, res:Landroid/content/res/Resources;
    iget-object v3, p0, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->mapList:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/HashMap;

    .line 113
    .local v1, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v3, "game_icon"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-static {v2, v3}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 114
    .local v0, bitmap:Landroid/graphics/Bitmap;
    const-string v3, "game_name"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    const-string v4, "game_info"

    invoke-virtual {v1, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-direct {p0, v0, v3, v4}, Lcom/flyfish/moregames/MoreGamesActivity$MyAdapter;->getView(Landroid/graphics/Bitmap;Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;

    move-result-object v3

    return-object v3
.end method
